package com.atguigu.mybatis.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.atguigu.mybatis.entities.Employee;

public interface EmployeeMapper {
	Employee getEmployeeById(Integer id);
	
	void addEmployee(Employee employee);
	
	void updateEmployee(Employee employee);
	
	void deleteEmployeeById(Integer id);
	
	List<Employee> getEmployees();
	
	Employee getEmployeeByLastNameAndEmail(@Param("lastName") String lastName , @Param("email") String email);
	
	Employee getEmployeeByMap(Map<String,Object> map);
}
